package com.xiezc.common.result;

import lombok.Data;

@Data
public class BaseResult {



    private String code = "200";
    private Boolean success = true;

    private String errorMsg;

    public static BaseResult success() {
        return new BaseResult();
    }

    public static BaseResult fail(String code, String errorMsg) {
        BaseResult baseResult = new BaseResult();
        baseResult.setCode(code);
        baseResult.setErrorMsg(errorMsg);
        baseResult.setSuccess(false);
        return baseResult;
    }
}
